﻿<?xml version="1.0" encoding="utf-8" ?>
<throttling enabled="true" logOnly="false">
  <ignoreParameters>
    <add name="rsid" />
  </ignoreParameters>
  <instances>
    <!--don't throttle-->
    <instance name="controller1" timeIntervalMsec="-1" maxThreshold="-1">
      <add path="~/CLOLogin.aspx" />
    </instance>
    <!--block completly-->
    <instance name="controller2" timeIntervalMsec="0" maxThreshold="0">
      <add path="~/Service.ashx" />
    </instance>
    <!--throttle at 2 calls per sec if ASP.NET_SessionId is available-->
      <!--method:ShortAverage/LongAverage/Linear-->
    <instance name="controller3" timeIntervalMsec="1000" maxThreshold="2" method="ShortAverage">
      <remove path="~/CLOLogin.aspx" />
      <remove path="~/Service.ashx" />
      <add path="*.*" condition="HasSessionId" />
    </instance>
    <!--throttle at 100 calls per sec if ASP.NET_SessionId is unavailable-->
    <instance name="controller4" timeIntervalMsec="1000" maxThreshold="100">
      <remove path="~/CLOLogin.aspx" />
      <remove path="~/Service.ashx" />
      <add path="*.*" condition="NoSessionId" />
    </instance>
  </instances>
</throttling>
